package com.ats.serviceimpl;

import java.util.List;

import com.ats.dao.TeacherDao_xh;
import com.ats.daoimpl.TeacherDaoImpl_xh;
import com.ats.model.User;
import com.ats.service.TeacherService_xh;

import net.sf.json.JSONArray;
/**
 * 老师个人功能的Service层实现类
 * @author xh
 *
 */
public class TeacherServiceImpl_xh implements TeacherService_xh {
		TeacherDao_xh tdao = new TeacherDaoImpl_xh();
	@Override
	public String FindTnameByTid(int tid) {
		// TODO Auto-generated method stub
		return tdao.FindTnameByTid(tid);
	}
	@Override
	public JSONArray FindTeacherByUid(int uid) {
		// TODO Auto-generated method stub
		return tdao.FindTeacherByUid(uid);
	}
	@Override
	public boolean updateTeacherByTid(String name, int age, String address, String number, int tid) {
		// TODO Auto-generated method stub
		return tdao.updateTeacherByTid(name, age, address, number, tid);
	}
	@Override
	public boolean updateTeacherPswByTid(String uname, String upsw, int tid) {
		// TODO Auto-generated method stub
		return tdao.updateTeacherPswByTid(uname, upsw, tid);
	}
	@Override
	public int findTidByUid(int uid) {
		// TODO Auto-generated method stub
		return tdao.findTidByUid(uid);
	}

}
